﻿@model VisaApp.Helper.PagedData<VisaApp.Models.YkienkhachhangModel>
@{ VisaApp.Helper.StringHelpers nameurl = new VisaApp.Helper.StringHelpers();}


<script type="text/javascript">
    $(document).ready(function () {
        $(".page-number").live("click", function () {
            show_Loading();
            var page = parseInt($(this).html());
            $.get("/News/GetYkienKhachangOncate?page=" + page, function (data) {
                $(".FromListThongtinCanbietTTHI").html("");
                $(".FromListThongtinCanbietTTHI").html(data);
                $('#box-busy').fadeOut('medium', function () {
                    $('.black_overlay').css('display', 'none');
                });

            });
        });
    });

</script>

<div class="service-c2-ct" >
    <h1>
        Khách hàng nói gì về chúng tôi
    </h1>
    @if (Model.Data != null)
    {
        <ul class="sayingContent">
            @foreach (var item in Model.Data)
            {
                <li class="note">
                    <div id="@item.Id">
                        <img src="/Content/images/customerIcon.png">
                        <div class="text">
                            <p class="">
                                "@Html.Raw(item.NoiDung)"
                            </p>
                            <span class="datepost">Gửi lúc: @string.Format("{0:HH:mm dd/MM/yyyy}", item.DateCreate) </span>
                            <br>
                            <span class="nameKH">@item.UserName - @item.Email </span><span style="float: right;">
                                <br>
                            </span>
                        </div>
                        <div class="clr">
                        </div>
                    </div>
                </li>
            }
        </ul>
    }
    <div class="clear"></div>
    <div class="PageNav">
        <span class="pageNavHeader">Trang @Model.CurrentPage / @Model.NumberOfPages</span>
        @for (int m = 1; m <= Model.NumberOfPages; m++)
        {
            if (m == Model.CurrentPage)
            {
            <a class="currentPage" href="javascript:void(0);">@m</a>
            }
            else
            {
            <a class="page-number" href="javascript:void(0);">@m</a>
            }
        }
        <a href="javsscript:void(0)" class="text">Sau &gt;</a>
    </div>
</div>
